package t4;

import java.util.Scanner;

import t4bean.StallBean;

/**
 * 
 * 输入进货水果的信息
 */
public class CinPurchase {
	public StallBean cinPurchase(Scanner cin, StallBean stall) {

		System.out.println("输入水果名字：");
		String fruitName = cin.nextLine();
		System.out.println("输入进价：");
		Integer cost = Integer.parseInt(cin.nextLine());
		System.out.println("输入售价：");
		Integer price = Integer.parseInt(cin.nextLine());
		System.out.println("输入进货数量：");
		Integer purchaseQuantity = Integer.parseInt(cin.nextLine());
		Purchase pur = new Purchase();
		stall = pur.purchase(stall, fruitName, cost, price, purchaseQuantity);
		return stall;
	}
}
